package com.jifeng.br.pjj.bookreader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jifeng.br.pjj.bookreader.entity.UserinfoEntity;
import com.jifeng.br.pjj.bookreader.util.R;
import com.jifeng.br.pjj.bookreader.util.form.LoginForm;
import com.jifeng.br.pjj.bookreader.util.form.PasswordForm;

/**
 * @Author PangJunjie
 * @Date 2023/7/11/011
 */
public interface UserinfoService extends IService<UserinfoEntity> {
    R login(LoginForm loginForm);

    void update(UserinfoEntity userinfo);

    void updatePassword(PasswordForm passwordForm);

    IPage<UserinfoEntity> getPage(int page, int limit, UserinfoEntity userinfo);

    UserinfoEntity getByUsername(String username);
}
